package com.code.day09.HashMap1;

import java.util.Collection;
import java.util.HashMap;
import java.util.Map;
import java.util.Set;

public class Demo2 {
    public static void main(String[] args) {
        HashMap<String, String> map = new HashMap<>();
        map.put("1", "1");
        map.put("2", "2");
        map.put("3", "3");
        map.put("4", "4");
        map.entrySet().forEach(entry -> {System.out.println(entry.getKey() + "--->" + entry.getValue());});
    }
}
